import request from '@/utils/request'
export function getTableList(data) {
    return request({
        url: '/report/metadata/table/list/',
        method: 'post',
        data
    })
}


export function getTableDetail(data) {
    return request({
        url: '/report/metadata/table/detail/',
        method: 'post',
        data
    })
}

export function getDbTypeInfo() {
    return request({
        url: '/api/metadata/database',
        method: 'get'
    })
}

export function getDbNameInfo(params) {
    return request({
        url: '/api/metadata/database',
        method: 'get',
        params
    })
}

export function getTableMappingList(data) {
    return request({
        url: '/report/metadata/mapping/',
        method: 'post',
        data
    })
}